package hyper

import lua "github.com/yuin/gopher-lua"

func startService(L *lua.LState) int {
	sFunc := L.ToFunction(1)
	err := L.CallByParam(
		lua.P{
			Fn:      sFunc,
			NRet:    0,
			Protect: true,
		})
	if err != nil {
		panic(err)
	}
	return 0
}

var HyperExports = map[string]lua.LGFunction{
	"start": startService,
}
